package com.zzxy.spring12.factory;

import com.zzxy.spring12.aspect.MyASpect;
import com.zzxy.spring12.service.IStudentService;
import com.zzxy.spring12.service.impl.StudentServiceImpl;

public class MyBeanFactoryCglib {
    public static <Enhancer> IStudentService createStudentService(){
        StudentServiceImpl studentServiceImpl =new StudentServiceImpl();
        MyASpect myASpect=new MyASpect();
        Enhancer enhancer;
        /*enhancer = new Enhancer();
        enhancer.setSuperclass(StudentServiceImpl.getClass());
        /*enhancer.setCallback(new MethodIntercepter(){
            @Override
            public Object intercept(Object o,Method method Object[] objects,MethodProxy methodproxy)throws throwable
        }*/

        return null;
    }
}
